// pages/destination/destination.js
Page({
  data:{
    hotcity:["热门","周边","从化","花海"],
    nearbyCity:["白云区","增城区","花都区"],
    active:5,
    hotView:[{
      title:"酒鬼街",
      imgUrl:"cloud://cloud1-8g82y67l213bbb4a.636c-cloud1-8g82y67l213bbb4a-1307837364/view-detail-images/002.png"
    },{
      title:"莲麻花海",
      imgUrl:"cloud://cloud1-8g82y67l213bbb4a.636c-cloud1-8g82y67l213bbb4a-1307837364/view-detail-images/003.png"
    },{
      title:"古驿道",
      imgUrl:"cloud://cloud1-8g82y67l213bbb4a.636c-cloud1-8g82y67l213bbb4a-1307837364/view-detail-images/004.png"
    },{
      title:"莲麻大舞台",
      imgUrl:"cloud://cloud1-8g82y67l213bbb4a.636c-cloud1-8g82y67l213bbb4a-1307837364/view-detail-images/005.png"
    }]
  },
  activeClick (e){
    let index=e.currentTarget.dataset.index;
     this.setData({
       active:index
     })
  },
    // 进入景点详情
  enterDetail(e) {
    let sid=e.currentTarget.dataset.id;
    wx.navigateTo({
      url: '../destination/view-detail/view-detail?sid='+sid+''
    })
  },
  // enterCity(e){
  //   let cityname=e.currentTarget.dataset.cityname;
  //   wx.navigateTo({
  //     url: 'cityView/cityView?cityname='+cityname+''
  //   })
  // }
})